|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A toolkit class for XPath request processing. It is accessible to XPath functions to help performing operation.
| Method Summary | |
XdpSequence |
computeSteps(XdpNode ctxNode,
XdpAnt[] ant)
Computes a step with an ANT (Axis-Node-Test) filter and the context node, and returns a new sequence containing the resulting nodes. |
XdpSequence |
computeSteps(XdpSequence inSeq,
XdpAnt[] ant)
Computes a step with an ANT (Axis-Node-Test) filter and an input sequence, and returns a new sequence containing the resulting nodes. |
XdpSequence |
createContextSequence(XoNode node)
Creates a new XPAth sequence filled with context node param. |
java.util.TreeSet |
createOrderedSequence()
Utility to create an ordered tree set, with some optimizations done on it. |
XdpSequence |
createRootSequence()
Creates a new sequence with root node as only item. |
XdpSequence |
createSequence()
Creates a new empty sequence. |
XdpSequence |
except(XdpSequence[] seq)
Computes XPath except operation of all XPath sequences given in array param seq
(seq[0] except seq[1] except seq{2] ...), and returns result in seq[0]. |
XdpNode |
getNodeById(java.lang.String id)
Returns the XdpNode node wrapper associated to id param. |
XsdString |
getStringValue(XdpNode node)
Converts node param in a string, according to XPath 2 conversion rules. |
XsdDataType |
getTypedValue(XdpNode node)
Gives XS datatype corresponding to the node param. |
XdpSequence |
intersect(XdpSequence[] seq)
Computes intersection of all XPath sequences given in array param seq
(seq[0] | seq[1] | seq{2] ...), and returns result in seq[0]. |
XdpSequence |
union(XdpSequence[] seq)
Computes union of all XPath sequences given in array param seq
(seq[0] & seq[1] & seq{2] ...), and returns result in seq[0]. |
| Method Detail |
public XdpSequence createRootSequence()
XdpSequence.
XoDMInstance object.public XdpSequence createSequence()
XdpSequence, as some optimizations are done here.
public XdpSequence createContextSequence(XoNode node)
node - the context node to put in sequence.
public java.util.TreeSet createOrderedSequence()
TreeSet
public XdpSequence computeSteps(XdpNode ctxNode,
XdpAnt[] ant)
throws XoException
ctxNode - XPAth context nodeant - the AxisNodeTest of the step
XoException - if some error occurs during processing
public XdpSequence computeSteps(XdpSequence inSeq,
XdpAnt[] ant)
throws XoException
inSeq - input XPAth sequenceant - Axis-Node-Test
XoException - if some error occurs during evaluationpublic XsdDataType getTypedValue(XdpNode node)
node param.
node - the node whose XS datatype is wanted
XsdDataType objectpublic XsdString getStringValue(XdpNode node)
node param in a string, according to XPath 2 conversion rules.
node - the node to convert as string
node
public XdpSequence union(XdpSequence[] seq)
throws XoException
seq
(seq[0] & seq[1] & seq{2] ...), and returns result in seq[0].
seq - an array of XPAth sequences to union
XoException - if some error occurred during processing
public XdpSequence intersect(XdpSequence[] seq)
throws XoException
seq
(seq[0] | seq[1] | seq{2] ...), and returns result in seq[0].
seq - an array of XPAth sequences to intersect
XoException - if some error occurred during processing
public XdpSequence except(XdpSequence[] seq)
throws XoException
seq
(seq[0] except seq[1] except seq{2] ...), and returns result in seq[0].
seq - an array of XPAth sequences to process
XoException - if some error occurred during processingpublic XdpNode getNodeById(java.lang.String id)
XdpNode node wrapper associated to id param.
id - ID value of wanted node
XdpNode wrapper, or null if not found.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||